package com.lzh.runke.core.mapper;

import com.lzh.runke.core.entity.spec.BaseSpec;
import com.lzh.runke.core.entity.Code;
import com.lzh.runke.core.enums.CodeTypeBaseEnum;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 通用码表 mapper
 *
 * @author xie
 */
@Mapper
public interface CodeMapper extends BaseMapper<Code, BaseSpec> {

    /**
     * 根据码表类型查询
     *
     * @param type CodeTypeBaseEnum
     * @return List<Code>
     */
    List<Code> findByType(CodeTypeBaseEnum type);
}
